package com.lzw.breezeNovel.webApp.mapper.comic;

import com.lzw.breezeNovel.model.entity.pojo.comic.Comic;
import com.lzw.breezeNovel.model.entity.pojo.comic.ComicCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.webApp.mapper.comic
 * @date 2025/3/16
 * @description
 */
@Mapper
@SuppressWarnings("all")
public interface ComicCategoryMapper {

    /**
     * 获取所有的漫画分类
     * @return
     */
    @Select("select * from comic_category")
    List<ComicCategory> selectAll();

    /**
     * 获取所有的漫画分类
     *
     * @return
     */
    List<Comic> selectByTypeAndRecomend(String type, int start, Integer size);


    /**
     * 获取所有的漫画分类
     * @param type
     * @param start
     * @param pageSize
     * @return
     */
    List<Comic> selectByTypeAndNew(String type, int start, Integer size);

    /**
     * 获取所有的漫画分类
     * @param type
     * @param start
     * @param pageSize
     * @return
     */
    List<Comic> selectByTypeAndHot(String type, int start, Integer size);

}
